package com.atguigu.common.exception;

/**
 * @Description 错误状态码和错误信息定义类
 * @Date 2021/4/13 15:26
 * @Author WangPeng
 * @Version 1.0
 */
public enum BizCodeEnume {
    UNKNOW_EXCEPTION(10000,"系统未知异常"),
    VAILD_EXCEPTION(10001,"参数格式校验失败");

    private int code;
    private String message;
    BizCodeEnume(int code,String message){
        this.code=code;
        this.message=message;
    }
    public int getCode(){
        return code;
    }
    public String getmessage(){
        return message;
    }
}
